home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _030F3EDD0DFD447CB9463ECAEF66C576 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.5 KB  |  54 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Specular (masked by gloss map in alpha channel of diffuse texture) and diffuse bump-mapping with real-time reflection map
  11. // At least three passes on NVidia NV1X for single-multiple light sources
  12. // One pass on ATI R3XX and NVidia NV3X for single light source (one pass for each additional LS)
  13. // One pass for single directional light source on any hardware
  14.  
  15. // Supports:
  16. // 1. Dot3 light maps
  17. // 2. Simple light maps
  18. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  19. // 4. Stencil shadows
  20. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  21. // 6. Optimised separate techniques for Single/Multiple light sources
  22. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  23.  
  24. Shader 'TemplBumpSpec_GlossAlpha_EnvCMAmb_RT'
  25. (
  26.   Params
  27.   (
  28.     Sort = Opaque
  29.   )
  30.   Public
  31.   (
  32.     float 'ReflectAmount' (0.25)
  33.   )
  34.   
  35.   RenderParams
  36.   {
  37.     DrawFarSprites
  38.     DrawStaticObjects
  39.     DrawParticles
  40.     DrawEntities
  41.     DrawIndoors
  42.     DrawDetailTextures
  43.     FullDetailTerrain
  44.     DrawWater
  45.     DrawTerrain
  46.   }
  47.  
  48.   #define $ENVCMAP $EnvironmentCubeMap
  49.   #include "BumpSpecular_GlossAlpha_EnvCM.csi"  
  50.   #undefine $ENVCMAP
  51. )
  52.  
  53.  
  54.